package com.ai.controller.made.ai_api;


import com.ai.annotation.EnterPathParamLog;
import com.ai.common.CommonResponse;
import com.ai.model.dto.CoalMaintenanceAlarmRecordDto;
import com.ai.model.vo.CoalRoutingInspectionAlarmVo;
import com.ai.service.made.ICoalMaintenanceAlarmRecordService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 单轨吊算法告警接口
 * @author jiaok
 * @since 2024-10-30
 */
@RestController
@RequestMapping("/algorithmAPI/coal-maintenance-alarm-record")
public class CoalMaintenanceAlarmRecordController {


    @Resource
    private ICoalMaintenanceAlarmRecordService maintenanceAlarmRecordService;


    @PostMapping("/addAlarm")
    @ApiOperation(value = "算法提交识别警告")
    @EnterPathParamLog
    public CommonResponse addAlarm(@ApiParam @RequestBody CoalMaintenanceAlarmRecordDto maintenanceAlarmRecordDto) {

        return maintenanceAlarmRecordService.addAlarm(maintenanceAlarmRecordDto);

    }


}
